package API.Stream.EndMethod;

import java.util.ArrayList;
import java.util.List;

public class CountMethod {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("Hello");
        list.add("World");
        list.add("Java");
        list.add("API");
        list.add("Stream");
        System.out.println(list.stream().count());
    }
}
